#ifndef MAPDRAGEVENT_H
#define MAPDRAGEVENT_H

#include <QObject>
#include <QPoint>

class MapDragEvent : public QObject
{
    Q_OBJECT
public:
    explicit MapDragEvent(QObject *parent = nullptr);
    bool eventFilter(QObject *watched, QEvent *event);
    void updateMapPosition(const QPoint &delta);

private:
    QPoint startPos;

signals:
    void mapPositionChanged(const QPoint &delta);
};

#endif // MAPDRAGEVENT_H
